#ifndef WIDGETLOGFORM_H
#define WIDGETLOGFORM_H

#include <QWidget>
#include <QStandardItemModel>
#include "QsLog/QsLog.h"
#include "QsLog/QsLogLevel.h"

namespace Ui {
class WidgetLogForm;
}

class WidgetLogForm : public QWidget
{
    Q_OBJECT

public:
    explicit WidgetLogForm(QWidget *parent = nullptr);
    ~WidgetLogForm();

public slots:
    void logtoDateBaseSlot(const QString &message, int level);
private:
    void InitTreeView();
    void logInit();


private:
    Ui::WidgetLogForm *ui;
    QStandardItemModel m_model;
};

#endif // WIDGETLOGFORM_H
